package com.kun.service;

import java.util.List;
import java.util.Map;

import com.kun.entity.BorrowRecord;

/**
 * @description:
 * @author: KM
 * 2018年4月5日
 */
public interface BorrowService {
	
	public int insertBorrow(BorrowRecord br);
	
	public int updateBorrow(BorrowRecord br);
	
	public Map<String,Object> selectAllBorrow(int begin,int length,String jsonString,List<String> userIdList,List<Integer> bookIdList);

	public int deleteBorrow(String borrowId);
	
	/**
	 * 根据userId查询借阅记录
	 * */
	public List<BorrowRecord> selectBorrowRecordByUserId(String userId);
	
	/**
	 * 根据userId查询目前借阅状态的图书数量
	 * */
	public int selectCurrnetBorrowNumByUserId(String userId);
}
